package com.shoes.service;

import com.shoes.model.ResponseDO;

/**
 * @author asen
 */
public interface StoreService {
    ResponseDO getStoreInfo(long userId, long storeId) throws Exception;
    ResponseDO getCouponsByStoreId(long storeId) throws Exception;
    ResponseDO createStore(long userId, String headPortrait, String storeName) throws Exception;
    ResponseDO setupStoreInfo(long storeId, String headPortrait, String storeName, String wxNum,
                  String storeBackground, String storeAddress) throws Exception;
    ResponseDO setupDefaultFreight(long storeId, long regionId, int goodsNum, double freight,
                   int goodsNumAdd, double freightAdd) throws Exception;
    ResponseDO setCashOnDelivery(long storeId, int cod) throws Exception;
    ResponseDO setSeventhDaysReturn(long storeId, int seventh) throws Exception;
    ResponseDO setGuaranteeBusiness(long storeId, int guarantee) throws Exception;
    ResponseDO createCoupon(long storeId, double couponValue, long startTime,
                long endTime, double minAmount, int couponNum, int limitNum) throws Exception;
    ResponseDO deleteCoupon(long storeId, String id) throws Exception;
    ResponseDO receiveCoupon(long userId, long storeId, long couponId) throws Exception;
    ResponseDO getCouponDetail(long storeId) throws Exception;
}
